package com.tianzeculture.stagebao.activity.personal;

import android.content.Intent;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.tianzeculture.stagebao.R;
import com.tianzeculture.stagebao.activity.personal.adapter.RecordAdapter;
import com.tianzeculture.stagebao.base.BaseActivity;
import com.tianzeculture.stagebao.network.enity.MSG;
import com.tianzeculture.stagebao.util.StatusBarUtil;
import com.tianzeculture.stagebao.view.MyListView;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by Administrator on 2018/6/20 0020.
 */

public class MyBagActivity extends BaseActivity {
    @BindView(R.id.tvRight)
    TextView tvRight;

    @BindView(R.id.lvRecord)
    MyListView lvRecord;

    @BindView(R.id.btnRecharge)
    Button btnRecharge;
    @BindView(R.id.btnPutForward)
    Button btnPutForward;

    RecordAdapter recordAdapter;

    @Override
    public void initUI() {
        super.initUI();
        StatusBarUtil.setWindowStatusBarColor(this, R.color.colorGray_F8);
        tvRight.setVisibility(View.VISIBLE);
        tvRight.setText("提现记录");

        recordAdapter = new RecordAdapter(this);
        lvRecord.setAdapter(recordAdapter);
    }

    @OnClick({R.id.btnRecharge, R.id.btnPutForward, R.id.tvRight})
    public void onclick(View view) {
        switch (view.getId()) {
            case R.id.btnPutForward:
                startActivity(new Intent(MyBagActivity.this, PutForwardActivity.class));
                break;
            case R.id.btnRecharge:
                startActivity(new Intent(MyBagActivity.this, RechargeActivity.class));
                break;
            case R.id.tvRight:

                break;
        }
    }

    @Override
    public void refreshUI(int taskId, MSG msg) {
        super.refreshUI(taskId, msg);
    }

    @Override
    protected int getLayoutResID() {
        return R.layout.activity_mybag;
    }
}
